import {MovieRequest} from "../../api"
import store from "../store"
import {MOVETYPE} from "../constant/movieConst"

// 这个函数正常来说是要返回action对象 
export const movieListAction=()=>{
 
  return  async ()=>{
    const re = await MovieRequest()
    store.dispatch( {
      type: MOVETYPE,
      data :re.data.data.list
    })
  }

}